<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%sys_tixian}}".
 *
 * @property integer $id
 * @property integer $uid
 * @property double $account
 * @property integer $cardid
 * @property integer $status
 * @property integer $operatorid
 * @property integer $apply_time
 * @property integer $audit_time
 */
class Tixian extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%sys_tixian}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid'], 'required'],
            [['uid', 'cardid', 'status', 'operatorid', 'apply_time', 'audit_time'], 'integer'],
            [['account'], 'number']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'uid' => '企业id',
            'account' => '提现额度',
            'cardid' => '银行卡id',
            'status' => '0申请中 1审核成功 2驳回',
            'operatorid' => '操作员id',
            'apply_time' => '申请时间',
            'audit_time' => '审核时间',
        ];
    }
}
